package com.cn.springcloudwechat.mapper.mapper.vaccinestation;


import com.cn.springcloudwechat.common.mybatis.Page;
import com.cn.springcloudwechat.model.vaccinestion.YmVStation;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface YmStationVMapper {
    int deleteByPrimaryKey(Long stationId);

    int insert(YmVStation record);

    int insertSelective(YmVStation record);
    
    /**
	 * 疫苗站读取
	 * 
	 * @param YmStation ymVStation
	 *           
	 * @return List<YmVStation>
	 */
    List<YmVStation> selectByPrimaryKey(@Param("YmVStation")YmVStation ymVStation,Page<YmVStation> page);
    
    List<YmVStation> queryVaccineUserMapper(@Param("stationName") String stationName,@Param("address") String address,@Param("page") Page<YmVStation> page);
    
    YmVStation selectByPrimaryKeys(@Param("YmVStation")YmVStation ymVStation/*,Page<Object> page*/);

    int updateByPrimaryKeySelective(YmVStation record);

    int updateByPrimaryKey(YmVStation record);
    
    /**
	 * 查询某一个疫苗站疫苗(包括时间段和对应的疫苗)
	 *  
	 * @param YmStation ymVStation
	 *           
	 * @return List<YmVStation>
	 */
    List<YmVStation> queryVaccineStationDetailMapper(YmVStation ymVStation);

	/**
	 * 查询地区全部疫苗站
	 * @return
	 */
	public List<YmVStation> queryVaccineStationByAreaId(@Param("ymVStation")YmVStation ymVStation, Page<YmVStation> page);
}